package com.yeyks.web;

import com.yeyks.account.dal.domain.AccountInfo;

/**
 * @author fuchangshuai
 * @date 2019/05/07 11:04
 */
public final class AccountUtils {
    private static ThreadLocal<AccountInfo> user = new ThreadLocal<>();

    public static void putLoginUser(AccountInfo currentUser) {
        user.set(currentUser);
    }

    public static AccountInfo getLoginUser() {
        return user.get();
    }
}

